﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Small.Html.Options
{
   public class JgGridHeaderOptions:JqBase
    {

       List<string> list = new List<string>();
        private bool useColSpanStyle;

        public bool UseColSpanStyle
        {
            get { return useColSpanStyle; }
            set { useColSpanStyle = value;
            list.Add(IsBool("useColSpanStyle", useColSpanStyle));
            }
        }

        private JqGridGroupHeader[] groupHeaders;

        public JqGridGroupHeader[] GroupHeaders
        {
            get { return groupHeaders; }
            set { groupHeaders = value;
            
                List<string> list1=new List<string>();
                foreach (var item in groupHeaders)
	         {
		 list1.Add(item.GenerateString());
         list.Add("groupHeaders:["+string.Join(",",list1.ToArray()+"]"));
	          }
               
            }
        }

       public override string GenerateString()
       {
           return string.Join("," + Environment.NewLine, list.ToArray());
       }
    }
}
